package com.example.waternetwork.api.supervision.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.waternetwork.api.supervision.entity.DataReservoirDispatchPlan;
import com.example.waternetwork.api.supervision.mapper.DataReservoirDispatchPlanMapper;
import com.example.waternetwork.api.supervision.service.IDataReservoirDispatchPlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 水库调度方案成果过程信息 服务实现类
 * </p>
 *
 * @author auto gen
 * @since 2025-07-02
 */
@Service
public class DataReservoirDispatchPlanServiceImpl extends ServiceImpl<DataReservoirDispatchPlanMapper, DataReservoirDispatchPlan> implements IDataReservoirDispatchPlanService {


    @Override
    public    DataReservoirDispatchPlan  getInfoByPlanId(Long id){
        QueryWrapper<DataReservoirDispatchPlan> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(DataReservoirDispatchPlan::getPlanId,id);
        return this.getOne(queryWrapper);
    }
}
